    	<div class="position">当前位置：<a href="<?php echo Yii::app()->createUrl('member/index/index');?>"><?php echo t('Member','web') ?></a> &gt; <a href="<?php echo Yii::app()->createUrl('member/info/info');?>">账户管理</a> &gt; 账户安全</div>
        <div class="hr_15"></div>
        <!--帐户安全 start-->
         <div class="userinfo_box pub_tab" id="securityTab">
         	<div class="tab_hd2 typebox">
                <ul class="c_f">
                    <li><a href="javascript:">登录密码<b class="mem_bgx left"></b><b class="mem_bgx right"></b></a></li>
                    <li><a href="javascript:">支付密码<b class="mem_bgx left"></b><b class="mem_bgx right"></b></a></li>
                    <li><a href="javascript:">更改邮箱<b class="mem_bgx left"></b><b class="mem_bgx right"></b></a></li>
                </ul>
            </div>
            <div class="tab_cont2 security">
            	<p class="c_666 remind"><span class="ico ico_tip"></span>安全性高的密码可以使账号更安全。建议您定期更换密码，且设置一个包含数字和字母，并长度超过6位以上的密码。</p>
				<?php $form=$this->beginWidget('CActiveForm', array(
                    'id'=>'member-form',
                    'enableAjaxValidation'=>false,
                    'enableClientValidation'=>true,
                    'clientOptions'=>array('validateOnSubmit'=>true),
                    //'action'=>'/member/info/repass',
                )); ?>
                <input type="hidden" name="Member[type]" value="psword">
                <?php echo $form->hiddenField($model,'zm_id',array('value'=>$model->zm_id)); ?>
                    <ul class="form_list">
                        <li>
                            <span class="tit">旧密码：</span>
                            <?php echo $form->passwordField($model,'old_psword',array('class'=>'t_ipt ipt_bg','maxlength'=>'32')); ?>
                            <?php echo $form->error($model,'old_psword','',true,true,'span'); ?>
                        </li>
                        <li>
                            <span class="tit">新密码：</span>
                            <?php echo $form->passwordField($model,'zm_psword',array('class'=>'t_ipt ipt_bg','value'=>'','maxlength'=>'32')); ?>
                            <?php echo $form->error($model,'zm_psword','',true,true,'span'); ?>
                        </li>
                        <li>
                            <span class="tit">再次输入新密码：</span>
                            <?php echo $form->passwordField($model,'re_psword',array('class'=>'t_ipt ipt_bg','maxlength'=>'32')); ?>
                            <?php echo $form->error($model,'re_psword','',true,true,'span'); ?>
                        </li>
                        <li><span class="tit"></span><input class="mem_btn mem_btn06" type="submit" name="" value="保 存" /></li>
                    </ul>
				<?php $this->endWidget(); ?>
                <div class="change_done d_n">
                	<p class="fw_b fs_14"><span class="ico_big ico_done"></span>恭喜您,密码修改成功！</p>
                    <p class="mt10">请用新密码重新登录，现在去 <a class="c_06c" href="<?php echo Yii::app()->user->loginUrl;?>" title="">登录</a></p>
                </div>
         	</div>
            <div class="tab_cont2 security">
                <p class="c_666 remind"><span class="ico ico_tip"></span>修改支付密码需要使用验证码，点击发送将发送验证码到您当前使用的邮箱。</p>
				    <ul class="form_list">
                        <li><span class="tit">您的注册邮箱：</span><?php echo $form->textField($model,'zm_email',array('class'=>'t_ipt ipt_bg','value'=>$model->zm_email,'maxlength'=>'32','disabled'=>'true')); ?><span id="emails"></span></li>
                        <li><span class="tit"></span>
							<?php echo CHtml::ajaxSubmitButton('发送验证码',
                            CHtml::normalizeUrl(
                            array('/ajax/sendEmailCaptcha')
                            ),
							array('success'=>'function(result){
								if(result==1){
									alert("验证码发送成功，请登录您的邮箱获取。");
								}else if(result==-1){
									alert("非法请求。");
								}else{
									alert("验证码发送失败，请重试，或联系管理员。");
								}
							}'
							),
                            array('class'=>'mem_btn mem_btn05'));?>
                        </li>
                    </ul>
            	<p class="c_666 remind"><span class="ico ico_tip"></span>初始支付密码与会员注册密码一致，为了您的交易安全，请务必更改你的支付密码，且最好与注册密码不同。</p>
				<?php 
                    $form = $this->beginWidget('CActiveForm', 
                    array(
                    'id'=>'user-form',
                    'enableAjaxValidation'=>false,
                    'enableClientValidation'=>true,
                    'clientOptions'=>array('validateOnSubmit'=>true),
                    'action'=>'/member/info/repass',
                    )); ?>
                <input type="hidden" name="Member[type]" value="paypsword">
                <?php echo $form->hiddenField($model,'zm_id',array('value'=>$model->zm_id)); ?>
                    <ul class="form_list">
                        <li>
                            <span class="tit">验证码：</span>
                            <?php echo $form->textField($model,'captcha',array('class'=>'t_ipt code','style'=>'width:80px','value'=>'','maxlength'=>'10')); ?>
                            <?php echo $form->error($model,'captcha','',true,true,'span'); ?>
                        </li>                        
                        <li>
                            <span class="tit">新支付密码：</span>
                            <?php echo $form->passwordField($model,'zm_paypsword',array('class'=>'t_ipt ipt_bg','value'=>'','maxlength'=>'32')); ?>
                            <?php echo $form->error($model,'zm_paypsword','',true,true,'span'); ?>
                        </li>
                        <li>
                            <span class="tit">重复新密码：</span>
                            <?php echo $form->passwordField($model,'re_paypsword',array('class'=>'t_ipt ipt_bg','maxlength'=>'32')); ?>
                            <?php echo $form->error($model,'re_paypsword','',true,true,'span'); ?>
                        </li>
                        <li>
                            <span class="tit"></span>
                            <input class="mem_btn mem_btn06" type="submit" name="" value="保 存" /></li>
                    </ul>
                <?php $this->endWidget(); ?>
                <div class="change_done d_n">
                	<p class="fw_b fs_14"><span class="ico_big ico_done"></span>恭喜您,密码修改成功！</p>
                    <p class="mt10">请妥善保管好您的支付密码，以确保交易安全！</p>
                </div>
         	</div>
            <div class="tab_cont2 security">
            <?php if($model->zm_check_status==1):?>
            <form action="/home/user/againEmail" method="post" name="">
        	<div class="success">
                	您还没激活您的邮箱：<strong class="c_f60 fs_14"><?php echo $model->zm_email; ?></strong>，<a href="<?php echo getPostOffice($model->zm_email);?>" title="" target="_blank">请前往完成激活</a>
            </div>
            <input type="hidden" name="Member[zm_email]" value="<?php echo $model->zm_email; ?>" />
            <input type="hidden" name="Member[zm_name]" value="<?php echo $model->zm_name; ?>" />
            <div class="check">
                <p class="btn_link"><button type="submit" name="" class="mem_btn mem_btn05">重发验证邮件</button></p>
            </div>
        	</form>        
        	<?php endif;?>
            <?php if($model->zm_check_status==2 || $model->zm_check_status==4):?>
                <p class="c_666 remind"><span class="ico ico_tip"></span>修改邮箱需要验证码，点击发送将发送验证码到您当前使用的邮箱。</p>
				    <ul class="form_list">
                        <li><span class="tit">您的注册邮箱：</span><?php echo $form->textField($model,'zm_email',array('class'=>'t_ipt ipt_bg','value'=>Yii::app()->user->email,'maxlength'=>'32','disabled'=>'true')); ?><span id="emails"></span></li>
                        <li><span class="tit"></span>
							<?php echo CHtml::ajaxSubmitButton('发送验证码',
                            CHtml::normalizeUrl(
                            array('/ajax/sendEmailCaptcha')
                            ),
							array('success'=>'function(result){
								if(result==1){
									alert("验证码发送成功，请登录您的邮箱获取。");
								}else if(result==-1){
									alert("非法请求。");
								}else{
									alert("验证码发送失败，请重试，或联系管理员。");
								}
							}'
							),
                            array('class'=>'mem_btn mem_btn05'));?>
                        </li>
                    </ul>
                <div class="change_done d_n">
                	<p class="fw_b fs_14"><span class="ico_big ico_done"></span>激活邮件已经成功发送到您的新邮箱，请查收</p>
                    <p class="mt10">请在24小时内前去激活，否则更改失效，现在去 <a class="c_06c fw_b" href="javascript:" title="">lhqms1@163.com</a> 激活</p>
                </div>
                
            	<?php 
                    $form = $this->beginWidget('CActiveForm', 
                    array(
                    'id'=>'email-form',
                    'enableAjaxValidation'=>false,
                    'enableClientValidation'=>true,
                    'clientOptions'=>array('validateOnSubmit'=>true),
                    'action'=>'/member/info/changeemail',
                )); ?>
                <?php echo $form->hiddenField($model,'zm_id',array('value'=>$model->zm_id)); ?>
                <p class="c_666 remind"><span class="ico ico_tip"></span>更改邮箱后系统会向您的新邮箱发送激活邮件，请在24小时内前激活。</p>   
                    <ul class="form_list">
                    <?php if($model->zm_check_status==2 || $model->zm_check_status==4):?>
                        <li><span class="tit">验证码：</span>
                        <?php echo $form->textField($model,'captcha',array('class'=>'t_ipt code','style'=>'width:80px','value'=>'','maxlength'=>'10')); ?><span id="captcha"></span>
                        <?php echo $form->error($model,'captcha','',true,true,'span'); ?>
                        </li>
                    <?php endif;?>
                        <li>
                            <span class="tit">请输入新的电子邮箱：</span>
                            <?php echo $form->textField($model,'zm_email',array('class'=>'t_ipt ipt_bg','value'=>'','maxlength'=>'32')); ?>
                            <?php echo $form->error($model,'zm_email','',true,true,'span'); ?>
                        </li>
                        <li><span class="tit"></span><input class="mem_btn mem_btn05" type="submit" name="" value="确认修改" /></li>
                    </ul>
                <div class="change_done d_n">
                	<p class="fw_b fs_14"><span class="ico_big ico_done"></span>激活邮件已经成功发送到您的新邮箱，请查收</p>
                    <p class="mt10">请在24小时内前去激活，否则更改失效，现在去 <a class="c_06c fw_b" href="javascript:" title="">lhqms1@163.com</a> 激活</p>
                </div>
                <?php $this->endWidget(); ?>
         	</div>
         	<?php endif;?>
         </div>
<?php
//来路指向的显示内容
$type = isset($_GET['type']) ? $_GET['type'] : 0;
switch ($type){
	case 'loginpass':$index = 0;
	break;
	case 'paypass':$index = 1;
	break;
	case 'regemail':$index = 2;
	break;
	default:$index = 1;
	break;
}
?>
<script type="text/javascript">
$(
	function(){
		$('#securityTab .typebox li').eq(<?php echo $index;?>).addClass('select').siblings().removeClass('select');
		$('.tab_cont2').eq(<?php echo $index;?>).show().siblings('.tab_cont2').hide();
	}
);
$('#securityTab .typebox li').click(function(){
	$(this).addClass('select').siblings().removeClass('select');
	$('.tab_cont2').hide().eq($(this).index()).show();
});
</script>
    	<!--帐户安全 end-->